﻿<?php
require_once('./includes/class.fetion.php');
$tophone=trim($_POST['tophone']);
$message=trim($_POST['message']);
$sms = new Fetion;
$sms->phone_num = trim($_POST['phone']);//$_CFG['sms_shop_mobile']
$sms->password = trim($_POST['fetion_password']) ;//$_CFG['sms_fetion_password']

$sms->sip_login();
//$sms->sendSMS_toPhone($tophone,$message);//$_CFG['sms_shop_mobile']
$sms->sendSMS_toPhone($tophone,iconv('UTF-8', 'gb2312', $message));//$_CFG['sms_shop_mobile']
$sms->sip_logout();
echo $message;
?>